import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    name: "App",
    component: () => import("../App.vue"),
    redirect: "/myhome",
    children: [
      {
        path: '/myhome',
        name: 'MyHome',
        component: () => import('../views/MyHome.vue')
      },
      {
        path: '/myabout',
        name: 'MyAbout',
        component: () => import('../views/MyAbout.vue')
      }
    ]
  }
]

export default routes
